package logic

import (
	"context"
	"user_srv/internal/dao"
	"user_srv/internal/svc"
	"user_srv/user"

	"github.com/zeromicro/go-zero/core/logx"
)

type MembershipLevelListLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewMembershipLevelListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MembershipLevelListLogic {
	return &MembershipLevelListLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// 会员等级展示
func (l *MembershipLevelListLogic) MembershipLevelList(in *user.MembershipLevelListRequest) (*user.MembershipLevelListResponse, error) {
	resp := dao.MembershipLevelList()
	return &user.MembershipLevelListResponse{
		List: resp,
	}, nil
}
